<?php
/* SVN FILE: $Id$ */
/**
 *  The default template for displaying summaries of the main content
 *
 *  Loops through the content in the database & presents it for display on the
 *  users computer
 *
 *  @package        CPConstruction
 *  @subpackage     Content
 *  @copyright      CP Construction (Gwent) Ltd <http://www.cpconstruction.co.uk/> 2012
 *  @author         Richard Perry <http://richard.perry-online.me.uk/>
 *  @since          Release 0.1.0
 *  @version        $Rev$
 *  @modifiedby     $LastChangedBy$
 *  @lastmodified   $Date$
 *
 *  @todo           ToDo List
 *                  -
 */
?>

                    <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
                        <header class="entry-header">
                            <h2 class="entry-title">
                                <a href="<?php the_permalink(); ?>" 
                                    title="<?php printf( 'Permalink to %s', 
                                    the_title_attribute( 'echo=0' ) ); ?>" 
                                    rel="bookmark"><?php the_title(); ?></a>
                            </h2><!-- .entry-title -->
                            <?php if(get_post_format()) : ?>
                                <h3 class='post-format'>
                                    <?php  _e( get_post_format(), 'cpcons' ); ?>
                                </h3>
                            <?php endif; ?>
                
                            <?php if ( 'post' == get_post_type() ) : ?>
                            <div class="entry-meta">
                                <?php 
                                cpc_entry_meta();
                                edit_post_link( __( 'Edit', 'cpcons' ), 
                                    "<span class='meta-sep'>|</span>\n\t\t\t\t\t\t<span class=\"edit-link\">", 
                                    "</span>\n\t\t\t\t\t" ) 
                                ?>
                            </div><!-- .entry-meta -->
                            <?php endif; ?>
                        </header><!-- .entry-header -->
                
                        <div class="entry-content">
                            <?php 
                            if ( has_post_thumbnail() ) {
                                $large_image_url = wp_get_attachment_image_src( get_post_thumbnail_id(), 'full');
                                echo '<a href="' . $large_image_url[0] . '" title="' . the_title_attribute('echo=0') . '" >';
                                the_post_thumbnail(array( 125, 125 ), array('class' => 'alignleft'));
                                echo '</a>';
                            }
                            the_excerpt( ); 
                            ?>
                        </div><!-- .entry-content -->
                    </article><!-- #post-<?php the_ID(); ?> -->
